					(function(window){
				var FormBuilder=function(data){
					this.data=data;
				};
				window.FormBuilder=FormBuilder;
			})(window);
		FormBuilder.prototype.creste=function(){
			var html='';
			for(var k in this.data){
				var item={tag:'',text:'',attr:{},option:null};
				for(var n in this.data[k]){
					item[n]=this.data[k][n;]
				}
				html+=builder.toHTML(item);
			}
			return '<table>'+html+'</table>';
			
		}
		var builder={
				toHTML:function(obj){},
				attr:function(attr){},
				item:{
					input:function(attr,option){},
					select:function(attr,option){},
					textarea:function(attr){}
				}
		};
		
		toHTML:function(obj){
			var html=this.item[obj.tag](this.attr(obj.attr),obj.option);
			return '<tr><th>'+obj.text+'</th><td>'+html+'</td></tr>';
		},
		attr: funcetionlattr){
		var html ='';
		for(var k in attr ){
		html+=k+'="'+attr[k]+'"';
		}
		return html; },
		
		input:function(attr,option){
			var html='';
			if(option==null){
				html+='<input'+arrt+'>';
			}else{
				for(var k in option){
					html+='<label><input'+attr+'value="'+k+'"'+'>';
					html+=option[k]+'</label>';
				}
			}
			return html;
		}
		select:function(attr,option){
			var html='';
			for(var k in option){
				html+='<option value="'+k+'">'+option[k]+'</option>';
			}
			return'<select'+attr+'>'+html+'</select>'
		}
		
		textarea:function(attr){
			return '<textarea'+attr+'></textarea>'
		}